import request from '@/utils/request';

//根据分类查询设备列表
export function getDeviceList(categoryId, pageNum, pageSize) {
    return request({
        url: '/productCategory/getDevices',
        method: 'get',
        params: {
            categoryId,
            pageNum,
            pageSize,
        },
    });
}

//查询分类列表
export function getCategoryList(query) {
    return request({
        url: '/productCategory/getProductList',
        method: 'get',
        params: query,
    });
}

export function getEventList(query) {
    return request({
        url: '/event/list',
        method: 'get',
        params: query,
    });
}
